package com.qfedu.lc.api.user.controller;

import com.qfedu.lc.api.user.service.VipServiceFeign;
import com.qfedu.lc.common.param.UserVipAdd;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/api/user/vip")
@RestController
public class VipController {

    @Autowired
    private VipServiceFeign vipServiceFeign;

    @PostMapping("/save")
    public R save(@RequestBody UserVipAdd userVipAdd){

        return vipServiceFeign.save(userVipAdd);
    }


}
